<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-ompatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules/react/cjs/react.development.js"></script>
    <script src="../node_modules/react-dom/cjs/react-dom.development.js"></script>
</head>
<body>
    <div id="root"></div>
</body>
</html>
<script>
    const div=React.createElement('div',{},'我是一个div')

    const root=ReactDOM.createRoot(document.getElementById('root'))

    root.render(div)

</script>